{% extends 'base.html' %}

{% block content %}
    <ul class="media-list">
                {% for article_obj in article_list %}
                    <li class="media">
                        <h4 class="media-heading"><a href="/{{ username }}/article/{{ article_obj.pk }}">{{ article_obj.title }}</a></h4>
                        <div class="media-left">
                            <a href="#">
                                <img class="media-object" src="/media/{{ article_obj.blog.userinfo.avatar }}" alt="..."
                                     width="80">
                            </a>
                        </div>
                        <div class="media-body">
                            {{ article_obj.desc }}
                        </div>
                        <!--posted @ 2020-10-11 11:00 JasonJi 阅读(229) 评论(1) 推荐(2) 编辑-->
                        <div class="pull-right">
                            <span>posted&nbsp;&nbsp;@&nbsp;&nbsp;</span>
                            <span>{{ article_obj.create_time|date:"Y-m-d" }}</span>
                            <span>{{ article_obj.blog.userinfo.username }}&nbsp;投递&nbsp;&nbsp;</span>
                            <span>评论<span class="glyphicon glyphicon-comment"></span>({{ article_obj.comment_num }})&nbsp;&nbsp;</span>
                            <span>点赞<span class="glyphicon glyphicon-thumbs-up"></span>({{ article_obj.up_num }})&nbsp;&nbsp;</span>
                            <span><a href="#">编辑</a></span>
                        </div>
                    </li>
                    <hr>
                {% endfor %}
            </ul>
{% endblock %}